
{% extends 'base_main.html' %}
{% block Meta %}
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
{% endblock %}

{% block content %}
<section class="rt_wrap mCustomScrollbar">

    <div class="rt_content">
        <div class="page_title">
            <h2 class="fl">商品分类详情</h2>
            <a class="fr top_rt_btn" href="{% url 'goods:goods_category_list' %}">返回商品分类列表</a>
        </div>
        <form action="" method="post" enctype="multipart/form-data">
            {% csrf_token %}
            <section>
                <ul class="ulColumn2">
                    <li>
                        <span class="item_name" style="width:120px;">商品分类名称：</span>
                            {% for type in types %}
                                {% if type.0 == category.category_type %}
                                        {{ type.1 }}
                                {% endif %}
                            {% endfor %}
                    </li>

                    <li>
                        <span class="item_name" style="width:140px;">上传商品分类首图：</span
                            <img src="/media/{{ category.category_front_image }}">

                        <label class="uploadImg">
                             <input type="file" name="category_front_image"/>
                             <span>上传图片</span>
                        </label>
                    </li>
                    <li>
                        <span class="item_name" style="width:120px;"></span>
                        <input type="submit" class="link_btn"/>
                    </li>
                </ul>
            </section>
        </form>
    </div>
</section>

{% endblock %}